package org.tvolkov.mycompany

import grails.converters.JSON

class DivisionController {
	
	def divisionService
	
	def list = {
		render divisionService.getDivisionList(params) as JSON;
	}
	
	def add = {
		render divisionService.addNewDivision(params) as JSON;
	}
	
	def remove = {
		render divisionService.removeDivision(params) as JSON;
	}
	
	def details = {
		render divisionService.getDivisionDetails(params) as JSON;
	}
	
	def edit = {
		render divisionService.editDivision(params) as JSON;
	}
}
